package com.itheima.mMothodDemo;
/*
  输出HelloWorld
 */
public class MothodDemo {
    public static void main(String[] args) {
        print(8);
        System.out.println();
        System.out.println();
        print(5);
    }
    public static void print(int num){
        for (int i =0;i<=num;i++){
            System.out.println("HelloWorld");
        }
    }
}
